/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CONVPLANOSACOMODACOES")
public class ConvPlanosAcomodacoesProteu implements Serializable{

    @Id
    @Column(name="CPA_ST_CODIGO")
    private String cpaStCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;
    @Column(name="CPA_ST_DESCRICAO")
    private String cpaStDescricao;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public String getCpaStCodigo() {
        return cpaStCodigo;
    }

    public void setCpaStCodigo(String cpaStCodigo) {
        this.cpaStCodigo = cpaStCodigo;
    }

    public String getCpaStDescricao() {
        return cpaStDescricao;
    }

    public void setCpaStDescricao(String cpaStDescricao) {
        this.cpaStDescricao = cpaStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ConvPlanosAcomodacoesProteu other = (ConvPlanosAcomodacoesProteu) obj;
        if ((this.cpaStCodigo == null) ? (other.cpaStCodigo != null) : !this.cpaStCodigo.equals(other.cpaStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 19 * hash + (this.cpaStCodigo != null ? this.cpaStCodigo.hashCode() : 0);
        return hash;
    }


}
